//登录API  http://localhost:2703/api/auth/login(下面网页链接)  POST {username, password}
import request from "../utils/request";

export const loginApi = ({ username, password }) => {
  return request.post("/auth/login", {
    username,
    password,
  });
};

// 退出登录
export const logoutApi = () => request.post("/auth/logout");
// 获取用户
export const getUserInforApi = () => request.get("/users/profile");
